package Chapter2.Comparing.c6;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public class MapDemo1 {
    public static void main(String[] args) {
        Map<String,Object> map = new LinkedHashMap<>();
        map.put("name","Tommy");
        map.put("age",21);
        map.put("address","China");

        int age = (Integer) map.get("age");
        System.out.println(age);
        Set<String> keys = map.keySet();
        for (String s:keys) {
            System.out.println(s+"==>"+map.get(s));
        }
    }
}
